home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
pine3.92
/
pico
/
makefile.msc
< prev
next >
Wrap
Makefile
|
1996-03-14
|
3KB
|
109 lines
# $Id: makefile.msc,v 4.10 1996/03/15 07:41:11 hubert Exp $
#
# Michael Seibel
# Networks and Distributed Computing
# Computing and Communications
# University of Washington
# Administration Builiding, AG-44
# Seattle, Washington, 98195, USA
# Internet: mikes@cac.washington.edu
#
# Please address all bugs and comments to "pine-bugs@cac.washington.edu"
#
#
# Pine and Pico are registered trademarks of the University of Washington.
# No commercial use of these trademarks may be made without prior written
# permission of the University of Washington.
#
# Pine, Pico, and Pilot software and its included text are Copyright
# 1989-1996 by the University of Washington.
#
# The full text of our legal notices is contained in the file called
# CPYRIGHT, included with this distribution.
#
#
#
# Makefile for MS-DOS version of the PINE composer library and
# stand-alone editor pico.
#
# MSC version of makefile
#
CC=cl
RM=del
CP=copy
#includes mouse support
MOUSE= -DMOUSE
#includes symbol info for debugging
DEBUG= #-Zi -Od
!IF DEFINED(PCTCP)
NET= -DPCTCP
!ELSE
NET=
!ENDIF
#in general, no debugging and optimize for size
CFLAGS= -Os $(DEBUG) -WX -AL -Gt4 -Gy $(NET) -DJOB_CONTROL -DANSI -DDOS $(MOUSE)
# switches for library building
LIBER=lib
LIBARGS=/NOL -+
HFILES= estruct.h edef.h efunc.h ebind.h pico.h
CFILES= ansi.c attach.c basic.c bind.c browse.c \
buffer.c composer.c display.c file.c fileio.c \
line.c ibmpc.c osdep.c pico.c random.c region.c \
search.c spell.c window.c word.c
OFILES= ansi.obj attach.obj basic.obj bind.obj browse.obj \
buffer.obj composer.obj display.obj file.obj fileio.obj \
line.obj ibmpc.obj osdep.obj pico.obj random.obj region.obj \
search.obj spell.obj window.obj word.obj
all: blddate.exe pico.exe
.c.obj:
$(CC) -c $(CFLAGS) $*.c
$(LIBER) libpico $(LIBARGS) $*;
$(OFILES): $(HFILES)
#
# dependencies for the Unix versions of pico and libpico.a
#
osdep.c: os_dos.c
$(RM) osdep.c
$(CP) os_dos.c osdep.c
osdep.h: os_dos.h
$(RM) osdep.h
$(CP) os_dos.h osdep.h
libpico.lib: osdep.c osdep.h $(OFILES)
# del libpico.lib
# $(LIBER) libpico +ansi+attach+basic+bind+browse;
# $(LIBER) libpico +buffer+composer+display+file+fileio;
# $(LIBER) libpico +line+ibmpc+osdep+pico+random+region;
# $(LIBER) libpico +search+spell+window+word;
blddate.exe: blddate.c
$(CC) blddate.c
main.obj: main.c $(HFILES)
$(CC) /c $(CFLAGS) main.c
pico.exe: libpico.lib main.obj
link /I /NOI /NOE /stack:32768 main.obj,pico.exe,nul,libpico.lib;
# link /CO /I /NOI /NOE /stack:32768 main.obj,pico.exe,nul,libpico.lib;
#clean:
# $(RM) *.lib
# $(RM) *.obj
# $(RM) osdep.c
# $(RM) osdep.h
#